-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix serialization #20
Conversation
Could you do a full replay and measure the performance penalty of your changes? If it is insignificant I'd tend to agree with you - simplicity over performance. OTOH, if it is significant we should try to optimize. |
Actually I've done a full replay, but didn't record the time used. Will do again. |
@pmconrad looks like the patch doesn't affect replay at all, perhaps due to no signature verification while replaying?
In above data, the latter spent even more time, but perhaps it is caused by processing the 2288 more blocks. By the way, I did enable //Update:
|
Thanks. That really is insignificant. Interesting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, let's merge this.
If the json fix has conflicts I'll rebase, then we should merge it too.
Then I'll rebase my variant fixes and concentrate on completing those.
@pmconrad I got some time, so are making changes to improve performance. Will push Soon. Please check again later. |
include/fc/io/raw.hpp
Outdated
@@ -54,15 +57,15 @@ namespace fc { | |||
inline void pack( Stream& s, const fc::log_message& msg, uint32_t _max_depth ) | |||
{ | |||
FC_ASSERT( _max_depth > 0 ); | |||
fc::raw::pack( s, variant(msg), _max_depth - 1 ); | |||
fc::raw::pack( s, variant(msg), _max_depth - 1 ); // TODO check variant depth? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FTR - Both TODOs are handled in my variant_fix branch as well, will have to resolve merge conflicts later. Leave them in for now.
Result of replay after the "optimization" commit (with frustration):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Lol |
Related to #15.